Ensure offscreen windows are not used as non-toplevels
authorAlexander Larsson <alexl@redhat.com>
Wed, 18 Feb 2009 11:57:12 +0000 (12:57 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:16:30 +0000 (10:16 +0200)
gdk/gdkwindow.c

index a27e30cce7f7a9256a47e0cb60e853be13fa097a..38fac4bbc8705c4da2801513f91052eb9db9299f 100644 (file)
@@ -878,11 +878,12 @@ gdk_window_new (GdkWindow     *parent,
     case GDK_WINDOW_TOPLEVEL:
     case GDK_WINDOW_DIALOG:
     case GDK_WINDOW_TEMP:
+    case GDK_WINDOW_OFFSCREEN:
       if (GDK_WINDOW_TYPE (parent) != GDK_WINDOW_ROOT)
        g_warning (G_STRLOC "Toplevel windows must be created as children of\n"
                   "of a window of type GDK_WINDOW_ROOT or GDK_WINDOW_FOREIGN");
     case GDK_WINDOW_CHILD:
-    case GDK_WINDOW_OFFSCREEN:
+      break;
       break;
     default:
       g_warning (G_STRLOC "cannot make windows of type %d", private->window_type);